]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
telepathyClient: Add another GAsyncReadyCallback
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 28 Jun 2011 16:06:54 +0000 (12:06 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 28 Jun 2011 17:22:26 +0000 (13:22 -0400)
This is better for memory management, and we'll see any errors this
way, which we may eventually want to do something with.

We need to make this change because gjs recently started checking
(allow-none) on callbacks.

js/ui/telepathyClient.js

index 14e1d4e4730823e0b95e0f37f8d4252ff4e31867..644f893e66914f85511148336c38291d30660101 100644 (file)
@@ -149,7 +149,9 @@ Client.prototype = {
                            if (this._tpClient.is_handling_channel(channel)) {
                                // The chat box has been destroyed so it can't
                                // handle the channel any more.
-                               channel.close_async(null);
+                               channel.close_async(function(src, result) {
+                                   channel.close_finish(result);
+                               });
                            }
 
                            delete this._sources[channel.get_object_path()];